import queuedemo.MyQueue;

import java.util.Deque;
import java.util.LinkedList;
import java.util.Queue;

public class Test {
    public static void main(String[] args) {
        MyQueue myQueue = new MyQueue();
        myQueue.offer(1);
        myQueue.offer(2);
        myQueue.offer(3);
        myQueue.offer(4);

        System.out.println(myQueue.poll());
        System.out.println(myQueue.peek());

        Queue<Integer> queue = new LinkedList<>();

        //双端队列
        /**
         * 可以从队头进、队尾出
         * 也可以从队尾进，队头出
         */
        Deque<Integer> deque = new LinkedList<>();


    }
}
